package com.wanglin.reggie;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
// 添加日志功能
@SpringBootApplication
// 标记为Spring Boot应用程序
@ServletComponentScan
// 扫描Servlet组件
// 启用事务管理
@EnableTransactionManagement
public class ReggieApplication {
    // 启动类
    public static void main(String[] args) {
        // 运行Spring Boot应用
        SpringApplication.run(ReggieApplication.class,args);
        // 记录日志，项目启动成功
        log.info("项目启动成功...");
    }
}
